package com.zbkj.crmeb.chant.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("eb_reserve_money_detail")
@Accessors(chain = true)
@ApiModel(value = "ReserveMoneyDetail对象", description = "供应商储备金明细")
public class ReserveMoneyDetail implements Serializable {

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("供应商在merchant表中的id")
    private Integer merId;

    @ApiModelProperty("采购单id")
    private Integer purchaseId;

    @ApiModelProperty("采购单号")
    private String purchaseOrderId;

    @ApiModelProperty("采购金额")
    private BigDecimal purchasePrice;

    @ApiModelProperty("储备金余额")
    private BigDecimal reserveMoney;

    @ApiModelProperty("操作人id")
    private Integer operateId;

    @ApiModelProperty("储备金变更说明")
    private String message;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
